<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1" import="com.sakila.dao.FilmDAO"
	import="java.util.List" import="java.util.Map"
	import="com.sakila.services.FilmActorServiceImpl"
	import="com.sakila.dbo.FilmDBO" import="com.sakila.dbo.ActorDBO" import="java.util.Iterator"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<%


		List<FilmDBO> medList = new FilmDAO().findAll();
		FilmDBO dbo = null;
	%>
<form action="actortable.jsp">
<select name ="mydrop" > 
<option value="1">Choose A Film Title</option> 

<% 
     for(int i=0; i<medList.size();i++){ 
          dbo = (FilmDBO)medList.get(i);
          
     %> 
<option value="<%=dbo.getFilm_id()%>"><%=dbo.getTitle()%></option> 
<%}%> 
</select>

<input type="submit" value ="submit"/>
</form>		
	


</body>
</html>